package com.bjpowernode;

import com.bjpowernode.ba01.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Mytest01 {
    @Test
    public void test01(){
        String config="applicationContext.xml";
        ApplicationContext context=
                new ClassPathXmlApplicationContext(config);
        Student myStudent = (Student) context.getBean("myStudent01");
        System.out.println(myStudent);

    }
}
